﻿<Window x:Class="Gene.WindowMain"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Chrome Visualization" Height="768" Width="1024" Loaded="Window_Loaded" Closed="Window_Closed" WindowStartupLocation="CenterScreen">

    <Grid Background ="Black" Canvas.Top="0" Canvas.Left="0" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="220"/>
       
        </Grid.ColumnDefinitions>

        <StackPanel Background="OldLace" Grid.Column="1" Name="ControlPanel">

            <Menu Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="0,0,0,0" Name="menuMain" VerticalAlignment="Top" Width="220">
                <MenuItem Header="File">
                    <MenuItem Header="Open Bed File" Click="OnOpenBedFile_Click" ToolTip="open a bed file" Name="OpenBed"/>
                    <MenuItem Header="Open Annotation File" ToolTip="open an annotation file" Name="OpenAnnotation" Click="OnOpenAnnotationFile_Click" />
                </MenuItem>
                <MenuItem Header="Settings">
                    <MenuItem Header="Choose Species" Name="ChooseSpeciesMenu" ToolTip="Choose other species " Click="ChooseSpeciesMenu_Click" />
                </MenuItem>
                <MenuItem Header="Presets" Name="PresetPointsMenu">
                    <MenuItem Header="1" Click="OnGotoPresetPoint1" Name="Preset1" />
                    <MenuItem Header="2" Click="OnGotoPresetPoint2" Name="Preset2" />
                    <MenuItem Header="3" Click="OnGotoPresetPoint3" Name="Preset3" />
                    <MenuItem Header="4" Click="OnGotoPresetPoint4" Name="Preset4" />
                </MenuItem>
            </Menu>
            <GroupBox Header="Cursor Location" Height="103" >
                <Grid Height="60">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                <Label Height="41" HorizontalAlignment="Left" VerticalAlignment="Top" Name="Chrome" Content="mouse info" Width="141" Margin="3,0,0,0"></Label>
                <Label Height="37" HorizontalAlignment="Left" VerticalAlignment="Top" Name="ChromeRange" Content="values" Width="142" Margin="0,30,0,0"></Label>
                </Grid>
            </GroupBox>
            <GroupBox Header="Control" Margin="0,0,0,0" Height="255">
            <Grid Height="255" Name="grid1" Width="202">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="41*" />
                        <RowDefinition Height="214*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="42*" />
                    <ColumnDefinition Width="113*" />
                        <ColumnDefinition Width="15*" />
                </Grid.ColumnDefinitions>
                <Label Content="Align Type:" Grid.ColumnSpan="2" Margin="4,6,18,7" />
                <ComboBox Name="ComboAlignType" SelectionChanged="ComboAlignType_SelectionChanged" Margin="0,6,7,0" Height="25" VerticalAlignment="Top" HorizontalAlignment="Right" Width="188" Grid.ColumnSpan="3" Grid.Row="1" />
                <Button Content="Reset Position" Name="btnReset" Click="btnReset_Click" Focusable="False" Grid.ColumnSpan="3" Margin="8,42,9,143" Grid.Row="1" />
                <Button Content="Save Position" Name="buttonSavePos" Click="OnSavePos_Click" Grid.ColumnSpan="3" Margin="8,77,9,108" Grid.Row="1" />
                <Button Content="Take Screen Shot" Name="ButtonScreenShot" Grid.ColumnSpan="3" Height="35" HorizontalAlignment="Left" Margin="5,0,0,67"  VerticalAlignment="Bottom" Width="188" Click="ButtonScreenShot_Click" Grid.Row="1" />
                    <Button Content="Enalarge" Grid.ColumnSpan="2" Height="30" HorizontalAlignment="Left" Margin="8,155,0,0" Name="buttonScaleUp" VerticalAlignment="Top" Width="88" Click="buttonScaleUp_Click" Grid.Row="1" />
                    <Button Content="Shrink" Height="30" HorizontalAlignment="Left" Margin="60,155,0,0" Name="buttonScaleDown" VerticalAlignment="Top" Width="83" Grid.Column="1" Click="buttonScaleDown_Click" Grid.Row="1" Grid.ColumnSpan="2" />
                </Grid>
            </GroupBox>
            <GroupBox Header="Help" Height="346" Name="groupBox1" Width="218" FontWeight="Bold" FontSize="16">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="8*" />
                        <ColumnDefinition Width="105*" />
                        <ColumnDefinition Width="93*" />
                    </Grid.ColumnDefinitions>
                    <TextBlock Height="314" HorizontalAlignment="Left" Margin="3,6,0,0" Name="textHelp" Text="" VerticalAlignment="Top" Width="204" TextWrapping="Wrap" Grid.ColumnSpan="3" FontSize="12" FontWeight="Normal" />
                </Grid>
            </GroupBox>
        </StackPanel>
        <DockPanel Grid.Column="0" Name="ViewPortPanel" Grid.Row="0"  Focusable="True" MouseMove="ViewPortPanel_MouseMove" MouseLeftButtonDown="ViewPortPanel_MouseLeftButtonDown" ToolTip="Use (Left Button) to change roll, (Right Button) to change pitch,(Alt+Left Button) to change yaw,(Ctrl+Left Button) to move through ranges" MouseRightButtonDown="ViewPortPanel_MouseRightButtonDown" MouseRightButtonUp="ViewPortPanel_MouseRightButtonUp" MouseLeftButtonUp="ViewPortPanel_MouseLeftButtonUp" KeyDown="ViewPortPanel_KeyDown" KeyUp="ViewPortPanel_KeyUp">
        </DockPanel>
    </Grid>
</Window>
